package test;

import org.yl.rpc.op.Echo;

import db.IDAO;

import rpc.RPC;

public class MainClient {
	public static void main(String[] args) {
		Echo echo = RPC.getProxy(Echo.class, "127.0.0.1", 20382);
		IDAO dao = RPC.getProxy(IDAO.class, "127.0.0.1", 20382);
		System.out.println(echo.echo("hello,hello"));
		dao.connect("library","youli","db_admin");
		System.out.println(dao.get("000005"));
	}
}
